#include "beginning.h"
#include "ui_beginning.h"
#include "rule.h"
#include "choose.h"
#include "choose_2.h"

beginning::beginning(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::beginning)
{
    ui->setupUi(this);

}

beginning::~beginning()
{
    delete ui;

}

void beginning::on_pushButton_clicked()//单人游戏
{
    this->close();
    choose *main=new choose();
    main->show();
}

void beginning::on_pushButton_2_clicked()//双人游戏
{
    this->close();
    choose_2 *main=new choose_2();
    main->show();
}
void beginning::on_pushButton_4_clicked()//退出游戏
{
    this->close();
}


void beginning::on_pushButton_3_clicked()//操作规则
{
    this->close();
    rule *ru=new rule();
    ru->show();
}

